<!-- <style>
  .ngdialog.ngdialog-theme-default .ngdialog-content {
    background: #fff;
  }
</style> -->

<h2>新增<span ng-show='type=="project"'>项目</span><span ng-show='type=="group"'>分组</span><span ng-show='type=="set"'>集合</span></h2>
<form name='addItem' novalidate="">
  <div class="form-group">
    <span ng-show='type=="project"'>项目</span><span ng-show='type=="group"'>分组</span><span ng-show='type=="set"'>集合</span>名称
    <input type="text" class="form-control" ng-model='name' placeholder="请输入名称" required="">
  </div>
  <button class="btn btn-info" ng-disabled='addItem.$invalid' ng-click='confirm(name)'>创建</button>
  <button class="btn btn-default" ng-click='closeThisDialog("cancel")'>取消</button>
</form>
